package com.example.mq.demo.template;

import org.apache.rocketmq.spring.annotation.ExtRocketMQTemplateConfiguration;
import org.apache.rocketmq.spring.core.RocketMQTemplate;

// 自定义 RocketMQTemplate
/*
 group属性的值夜可以直接写生产者组的名称，如group = "tx-producer-group",
 但是用占位符代码的可维护性更好些，需要修改名称的时候也只需要修改yml
*/
@ExtRocketMQTemplateConfiguration(group = "${rocketmq.producer.group}")
public class CustomTxRocketMQTemplate extends RocketMQTemplate {
}
